<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of Tyrannt.EditImagesViewModel)" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Images
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Images</h2>
    <%="" %>
    
    <% Html.BeginForm()%>
    
    <fieldset id="editImageForm">
        <legend id="editImageLegend">Image Information</legend>
        <table style="border-style: hidden">
            <tr>
                <td rowspan="4" >
                    <img id="selectedImage" src="" alt="" />
                </td>
                <td>
                    <label>Name</label>
                    <input type="text" id="imageNameTextBox" value="" />
                </td>
            </tr>
            <tr>
                <td>
                    <label>Url</label>
                    <input type="text" id="imageUrlTextBox" value="" />
                </td>
            </tr>
            <tr>
                <td>
                    <label>Type</label>
                    <input type="text" id="imageTypeTextBox" value="" />
                </td>
            </tr>    
            <tr>
                <td>
                    <label>Tag</label>
                    <input type="text" id="imageTagTextBox" value="" />
                </td>
            </tr>
            <tr>
                <td colspan="2"><label id="resultText"></label></td>
            </tr>
        </table>     
        
        <br />
        <br />
        <input type="submit" id="insertEditButton" value="Insert / Edit" />
        <input type="submit" id="deleteButton" value="Delete" />
        <br />
        <br />
    </fieldset>      
                
    <% Html.EndForm()%>
    
    <% Html.RenderPartial("ImageList", Model.ImageListViewModel)%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Scripts" runat="server">
	<script src="/scripts/EditImages.js" type="text/javascript"></script>
</asp:Content>